<?php
 class Configs extends CI_Model{
    function __construct(){
        parent::__construct();
    }
    
     /** 
     * Insert data for contact
     * @author tien.nguyen
     */
    public function getList(){
        $query = $this->db->get('configs');
        $res = $query->result();
        
        //general test item for config code.
        $arr = array();
        if($res){
            foreach($res as $item){
                $arr[$item->ConfigCode] = $item->ConfigValue;
            }
        }
        return $arr;
    }
 }
?>